package com.lzm.ydpt.module.order.activity;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.byt.framlib.base.BaseActivity;
import com.byt.framlib.basemvp.BasePresenter;
import com.byt.framlib.commonwidget.NormalTitleBar;
import com.byt.framlib.commonwidget.OnNoDoubleClickListener;
import com.byt.framlib.commonwidget.onclicktwo.AntiShake;
import com.lzm.ydpt.R;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 收银台
 */
public class CashierActivity extends BaseActivity {

    @BindView(R.id.ntb_price_rules)
    NormalTitleBar ntb_price_rules;

    @BindView(R.id.tv_order_mail_info)
    TextView tv_order_mail_info;
    @BindView(R.id.tv_order_mail_address)
    TextView tv_order_mail_address;

    @BindView(R.id.tv_order_delivery_info)
    TextView tv_order_delivery_info;
    @BindView(R.id.tv_order_delivery_address)
    TextView tv_order_delivery_address;

    @BindView(R.id.tv_order_detail_goods)
    TextView tv_order_detail_goods;
    @BindView(R.id.tv_order_detail_qu_time)
    TextView tv_order_detail_qu_time;
    @BindView(R.id.tv_order_detail_remark)
    TextView tv_order_detail_remark;
    @BindView(R.id.img_sign_order_detail)
    ImageView img_sign_order_detail;

    @BindView(R.id.tv_order_distance)
    TextView tv_order_distance;
    @BindView(R.id.tv_order_amount)
    TextView tv_order_amount;
    @BindView(R.id.tv_price_increase)
    TextView tv_price_increase;

    @BindView(R.id.tv_order_number)
    TextView tv_order_number;
    @BindView(R.id.tv_order_time)
    TextView tv_order_time;
    @BindView(R.id.tv_order_rmb_amount)
    TextView tv_order_rmb_amount;
    @BindView(R.id.tv_order_state)
    TextView tv_order_state;

    @BindView(R.id.tv_kilometers)
    TextView tv_kilometers;
    @BindView(R.id.tv_estimated_amount)
    TextView tv_estimated_amount;

    @Override
    public int getLayoutId() {
        return R.layout.activity_cashier;
    }

    @Override
    public BasePresenter initPreData() {
        return null;
    }

    @Override
    public void initView() {
        ntb_price_rules.setTitleText("收银台");
        ntb_price_rules.setOnBackListener(new OnNoDoubleClickListener() {
            @Override
            protected void onNoDoubleClick(View v) {
                finish();
            }
        });
    }

    @OnClick({R.id.tv_settlement})
    public void OnClick(View v) {
        if (AntiShake.check(v.getId())) {
            return;
        }
        switch (v.getId()) {
            case R.id.tv_settlement:
                openActivity(PayResultsActivity.class);
                break;
        }
    }
}